<?php
namespace API\Controller;
use Think\Controller;
/**
* 反馈信息业务
*/
class FbmsgController extends PublicController
{
	
	public function subfbmsg(){
		if(IS_POST){
            $date['fbcontent'] = I('post.fbcontent');
            $date['contact'] = I('post.contact');
		}
		elseif (IS_GET) {
			$date['fbcontent'] = I('get.fbcontent');
            $date['contact'] = I('get.contact');
		}
		if (!empty($date['fbcontent'])&&!empty($date['contact'])) {
			$date['fbmsgsbt'] = array('exp','now()');
			$fb = M('Fbmsg');
			if(false!=$fb->add($date)){
              return PublicController::codedate(1,"success");
			}else{
				return PublicController::codedate(0,"fail");
			}
		}else{
        return PublicController::codedate(403,"");
		}
	}
}